package net.betou.trade.entity.main.base;

import java.io.Serializable;
import java.util.Date;

import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.SuggAnswer;
import net.betou.trade.entity.main.Suggestion;

/**
 * 意见回复 "table: trade_sugg_answer"
 * @author O.Y.
 *
 */
public abstract class BaseSuggAnswer implements Serializable{

	private static final long serialVersionUID = 7260228585752862566L;
	
	private Integer id;//id
	private String title;//标题',
	private String content;//内容
	private String filePath1;//附件1
	private String filePath2;//附件2
	private String filePath3;//附件3
	private Date addDate;//回复时间
	private String addIp;//提交时的ip
	   
	private AgentAndAdmins admin;
	private Suggestion sugg;
	private SuggAnswer answer;
	
	public BaseSuggAnswer() {
		super();
	}
	
	public BaseSuggAnswer(Integer id) {
		super();
		this.id = id;
	}
	
	public BaseSuggAnswer(Integer id, String title, String content, String filePath1, String filePath2, String filePath3, Date addDate, String addIp, AgentAndAdmins admin, Suggestion sugg, SuggAnswer answer) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.filePath1 = filePath1;
		this.filePath2 = filePath2;
		this.filePath3 = filePath3;
		this.addDate = addDate;
		this.addIp = addIp;
		this.admin = admin;
		this.sugg = sugg;
		this.answer = answer;
	}
	
	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final BaseSuggAnswer other = (BaseSuggAnswer) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	public Date getAddDate() {
		return addDate;
	}
	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}
	public String getAddIp() {
		return addIp;
	}
	public void setAddIp(String addIp) {
		this.addIp = addIp;
	}
	public AgentAndAdmins getAdmin() {
		return admin;
	}
	public void setAdmin(AgentAndAdmins admin) {
		this.admin = admin;
	}
	public SuggAnswer getAnswer() {
		return answer;
	}
	public void setAnswer(SuggAnswer answer) {
		this.answer = answer;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getFilePath1() {
		return filePath1;
	}
	public void setFilePath1(String filePath1) {
		this.filePath1 = filePath1;
	}
	public String getFilePath2() {
		return filePath2;
	}
	public void setFilePath2(String filePath2) {
		this.filePath2 = filePath2;
	}
	public String getFilePath3() {
		return filePath3;
	}
	public void setFilePath3(String filePath3) {
		this.filePath3 = filePath3;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Suggestion getSugg() {
		return sugg;
	}
	public void setSugg(Suggestion sugg) {
		this.sugg = sugg;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}

}
